//
//  UIView+MyViewCategory.h
//  JHLNHV2
//
//  Created by macbook-air on 15/5/7.
//  Copyright (c) 2015年 macbook-air. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef NS_OPTIONS(NSInteger, KNViewBorder)
{
    KNViewBorderLeft = 1 << 0,
    KNViewBorderRight = 1 << 1,
    KNViewBorderTop = 1 << 2,
    KNViewBorderBottom = 1 << 3,
    KNViewBorderNone = 1 << 4
};

@interface UIView (KNViewCategory)

@property(nonatomic) KNViewBorder border;

@property (nonatomic) UIColor *borderColor;

@property (nonatomic) NSNumber *borderWidth;

- (void)KNSetBorderRaidus;

- (void)KNSetBorderRaidus:(CGFloat)radius borderwidth:(CGFloat)borderwidth bordercolor:(UIColor *)bordercolor;

- (CALayer *)KNDrawALine:(CGRect)frame color:(CGColorRef)color;

- (void)KNSetBorderRaidus:(CGFloat)radius borderwidth:(CGFloat)borderwidth bordercolor:(UIColor *)bordercolor shadowColor:(UIColor *)shadowColor shadowOpacity:(CGFloat)opacity offSet:(CGSize)offset shaowRadius:(CGFloat)shadowRadius;

@end
